package com.jymj.dao;

import com.jymj.entity.KeyValueEntity;
import com.jymj.entity.huji.ZhaiEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by ljj on 2017/4/6.
 */
@Mapper
public interface ZhaiDao {

    List<ZhaiEntity> getZhaiEntity(@Param("objectid") Integer objectid, @Param("household") Integer household);

    List<ZhaiEntity> getZhaiByCunName(String cunName);

    //1
    List<ZhaiEntity> getHuQuery(Map map);

    //1
    List<KeyValueEntity> queryByAge(Map map);

    //1
    List<KeyValueEntity> queryBysex(Map map);

    //1
    List<KeyValueEntity> queryByEmp(Map map);

    //1
    List<KeyValueEntity> queryByHuType(Map map);

    //1
    List<KeyValueEntity> getse1ByFrame(Map map);

    //1
    List<KeyValueEntity> getse2ByFrame(Map map);

    //1
    List<KeyValueEntity> getse0ByFrame(Map map);

    //1
    List<ZhaiEntity> getZhaiList(Map map);

    //1
    List<KeyValueEntity> getByEmp(Map map);

    //1
    List<KeyValueEntity> getByHuType(Map map);

    //1
    int getHuQueryCount(Map map);

    //1
    Integer getZhaiListCount(Map map);

    //1
    List<ZhaiEntity> getHujiByObid(Integer objectid);

    //1
    List<ZhaiEntity> getZhaiListExcel(Map map);

    //1
    List<ZhaiEntity> getHuExcelQuery(Map map1);

    void update(ZhaiEntity zhaiEntity);

    void save(ZhaiEntity zhaiEntity);

    ZhaiEntity getzhai(@Param("objectid") Integer objectid, @Param("household") Integer household);

    int deleteHuji(@Param("ids") Long[] ids);

    void updateHu(@Param("ylId") Integer ylId, @Param("household") Integer household);

    List<ZhaiEntity> getHuji(Integer ylId);
}
